class MineInfo {
  String code;
  Data data;
  String msg;
  String requestId;
  bool isManager = false;

  MineInfo({this.code, this.data, this.msg, this.requestId});

  MineInfo.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    data = json['data'] != null ? new Data.fromJson(json['data']) : null;
    msg = json['msg'];
    requestId = json['requestId'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    if (this.data != null) {
      data['data'] = this.data.toJson();
    }
    data['msg'] = this.msg;
    data['requestId'] = this.requestId;
    return data;
  }
}

class Data {
  // int ahjId;
  String username;
  String nickname;
  String password;
  String phone;
  String email;
  String sexDesc;
  // int accountType;
  String accountTypeDesc;
  // String tenantId;
  String avatarPath;
  // String ecMemberId;
  String accountStatusDesc;

  // var regionStatus; //0 审核中，1 审核通过，2 审核不通过
  // String regionsMsg;

  Data({
    // this.ahjId,
    this.username,
    this.nickname,
    this.password,
    this.phone,
    this.email,
    this.sexDesc,
    // this.accountType,
    this.accountTypeDesc,
    // this.tenantId,
    this.avatarPath,
    // this.ecMemberId,
    this.accountStatusDesc,
  });

  Data.fromJson(Map<String, dynamic> json) {
    // ahjId = json['id'];
    email = json['email'];
    username = json['username'];
    password = json['password'];
    phone = json['phone'];
    sexDesc = json['sexDesc'];
    nickname = json['nickname'];
    // accountType = json['accountType'];
    accountTypeDesc = json['accountTypeDesc'];
    // tenantId = json['tenantId'];
    avatarPath = json['avatarPath'];
    // ecMemberId = json['ecMemberId'];
    accountStatusDesc = json['accountStatusDesc'];

  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    // data['id'] = this.ahjId;
    data['email'] = this.email;
    data['username'] = this.username;
    data['password'] = this.password;
    data['phone'] = this.phone;
    data['sexDesc'] = this.sexDesc;
    data['nickname'] = this.nickname;
    // data['accountType'] = this.accountType;
    data['accountTypeDesc'] = this.accountTypeDesc;
    // data['tenantId'] = this.tenantId;
    data['avatarPath'] = this.avatarPath;
    // data['ecMemberId'] = this.ecMemberId;
    data['accountStatusDesc'] = this.accountStatusDesc;

    return data;
  }
}

class Dicts {
  String dictId;
  String dictName;

  Dicts({this.dictId, this.dictName});

  Dicts.fromJson(Map<String, dynamic> json) {
    dictId = json['dictId'];
    dictName = json['dictName'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['dictId'] = this.dictId;
    data['dictName'] = this.dictName;
    return data;
  }
}
